package com.fy.admin.feign;

import com.fy.admin.vo.EntityOrderVo;
import com.fy.admin.vo.TicketOrderVo;
import com.fy.common.api.CommonResult;
import io.swagger.annotations.ApiOperation;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.stereotype.Component;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.PathVariable;
import org.springframework.web.bind.annotation.PostMapping;

import java.util.List;

@Component
@FeignClient(name = "domain-order")
public interface OrderManagementFeignService {
    //    门票
    @GetMapping(value = "/ticket/findAll/{pageSize}/{limit}")
     CommonResult ticketFindAll(@PathVariable Integer pageSize, @PathVariable Integer limit);

    @GetMapping(value = "/ticket/findById/{id}")
     CommonResult ticketFindById(@PathVariable Integer id);

    @PostMapping(value = "/ticket/isLocking/{id}")
     CommonResult ticketIsLocking(@PathVariable Integer id);

    @PostMapping(value = "/ticket/updateState/{id}")
     CommonResult ticketUpdateState(@PathVariable Integer id);

    //实物
    @GetMapping(value = "/entity/findAll/{pageSize}/{limit}")
     CommonResult entityFindAll(@PathVariable Integer pageSize, @PathVariable Integer limit);

    @GetMapping(value = "/entity/findById/{id}")
     CommonResult findById(@PathVariable Integer id) ;
    @PostMapping(value = "/entity/isLocking/{id}")
     CommonResult entityIsLocking(@PathVariable Integer id);

    @PostMapping(value = "/entity/updateState/{id}")
     CommonResult entityUpdateState(@PathVariable Integer id);
}
